﻿using System.Linq;
using System.Web.Mvc;
using Citi.PTSConsolidation.Domain;
using Citi.PTSConsolidation.WebUi.Models;

namespace Citi.PTSConsolidation.WebUi.Controllers
{
    public class ProjectController : Controller
    {
        public ActionResult Index()
        {
            var projects = new Project().SelectAll<Project>().OrderBy(x => x.Id);

            return View(ProjectModel.CreateModel(projects));
        }
    }
}
